package com.hotai.controller;


import com.hotai.comment.dtos.ResponseResult;
import com.hotai.comment.pojo.UserStudent;
import com.hotai.service.InstitutionSerivice;
import com.hotai.service.UserStudentSerivice;
import com.hotai.service.UserTeacherService;
import com.hotai.vo.course.CourseDetail;
import com.hotai.vo.equipment.EquipmentList;
import com.hotai.vo.institulion.InstitutionAddTear;
import com.hotai.vo.userteacher.GuanTeacherPage;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/guanxiao")
@RestController
@CrossOrigin
public class GuanXiaoController {

    @Autowired
    private UserTeacherService   userTeacherService;
    @Autowired
    private UserStudentSerivice  userStudentSerivice;

    @Autowired
    private InstitutionSerivice institutionSerivice;

    @RequestMapping("/Tealist")
    private ResponseResult EuipmentList( EquipmentList query){
        return  userTeacherService.GuanTeaList(query);

    }
    @RequestMapping("/Stulist")
    private ResponseResult StudentList( EquipmentList query){
        return  userStudentSerivice.GuanStuList(query);

    }
    @RequestMapping("/Teadetail")
    private ResponseResult  Coursewaredetail( EquipmentList query ){
        return    userTeacherService.GuanTeaDetail(query);
    }
    @RequestMapping("/TeaShodetail")
    private ResponseResult  TeaShodetail( GuanTeacherPage query ){
        return    userTeacherService.GuanTeaShoDetail(query);
    }
    @RequestMapping("/AddStu")
    private ResponseResult  AddStudent( UserStudent userStudent){
        return    userStudentSerivice.AddStudent(userStudent);
    }
    @RequestMapping("/AddTear")
    private ResponseResult  AddTear( InstitutionAddTear institutionAddTear){
        return    institutionSerivice.InstituaddTear(institutionAddTear);
    }
}
